package com.xinlong.job;

import com.xinlong.service.Ordersservice;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

public class OrderJob implements Job {
    @Autowired
    private Ordersservice ordersservice;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        ordersservice.updateStatus();
    }
}
